package com.simon.system.dao;

import java.util.List;

import com.simon.system.model.Permisson;
import org.springframework.stereotype.Repository;

@Repository
public interface PermissonMapper {

	int deleteByPrimaryKey(Integer id);

    int insert(Permisson record);

    int insertSelective(Permisson record);

    Permisson selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Permisson record);

    int updateByPrimaryKey(Permisson record);
    
    List<Permisson> selectPermissons();
    
    List<Permisson> findByUserId(Integer userId);
    
    Permisson findByCode(String code);
    
    List<Permisson> findByRoleId(Integer roleId);
}